//
//  modelView.m
//  自定义pickView的row
//
//  Created by 伍银荣 on 2021/6/20.
//  Copyright © 2021 com.example. All rights reserved.
//

#import "ModelView.h"
#import "Countries.h"

@interface ModelView ()
@property (strong, nonatomic) IBOutlet UILabel *nameLbl;
@property (strong, nonatomic) IBOutlet UIImageView *iconImgVIew;

@end

@implementation ModelView

-(void)setCountriesModel:(Countries *)countriesModel {
    _countriesModel = countriesModel;
    self.nameLbl.text = countriesModel.name;
    self.iconImgVIew.image = [UIImage imageNamed:countriesModel.icon];
}

+(instancetype)modelView {
    return [[[NSBundle mainBundle]loadNibNamed:@"ModelView" owner:nil options:nil] lastObject];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
